<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="http://www.petercorke.com/RVC/common/toolboxhelp.css">
    <title>M-File Help: imser</title>
  </head>
  <body>
  <table border="0" cellspacing="0" width="100%">
    <tr class="subheader">
      <td class="headertitle">M-File Help: imser</td>
      <td class="subheader-left"><a href="matlab:open imser">View code for imser</a></td>
    </tr>
  </table>
<h1>imser</h1><p><span class="helptopic">Maximally stable extremal regions</span></p><strong>L</strong> = <span style="color:red>imser</span>(<strong>im</strong>, <strong>options</strong>) is a greyscale segmentation of the image <strong>im</strong> based on
maximally stable extremal regions.  <strong>L</strong> is an image of the same size as <strong>im</strong>
where each element is the label assigned to the corresponding pixel in <strong>im</strong>.
The labels

[<strong>L</strong>,<strong>m</strong>] = <span style="color:red>imser</span>(<strong>im</strong>, <strong>options</strong>) as above but <strong>m</strong> is the number of regions
found.

<h2>Options</h2>
<table class="list">
  <tr><td style="white-space: nowrap;" class="col1"> 'dark'</td> <td>looking for dark features against a light background (default)</td></tr>
  <tr><td style="white-space: nowrap;" class="col1"> 'light'</td> <td>looking for light features against a dark background</td></tr>
</table>
<h2>Example</h2>
<pre style="width: 90%%;" class="examples">
im&nbsp;=&nbsp;iread('castle_sign2.png',&nbsp;'grey',&nbsp;'double');
[label,m]&nbsp;=&nbsp;imser(im,&nbsp;'light');
idisp(im)
</pre>
<h2>Reference</h2>
"Robust wide-baseline stereo from maximally stable extremal regions",
J. Matas, O. Chum, <strong>m</strong>. Urban, and T. Pajdla,
Image and Vision Computing,
vol. 22, pp. 761–767, Sept. 2004.

<h2>Notes</h2>
<ul>
  <li>Is a wrapper for vl_mser, part of VLFeat (vlfeat.org), by Andrea Vedaldi
and Brian Fulkerson</li>
  <li>vl_mser is a MEX file</li>
</ul>
<h2>See also</h2>
<p>
<a href="matlab:doc ithresh">ithresh</a>, <a href="matlab:doc igraphseg">igraphseg</a></p>
<hr>

<table border="0" width="100%" cellpadding="0" cellspacing="0">
  <tr class="subheader" valign="top"><td>&nbsp;</td></tr></table>
<p class="copy">&copy; 1990-2011 Peter Corke.</p>
</body></html>